﻿using Hs.CardUt.D3;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;
using System.Windows.Forms;

namespace Hs.CardUt
{
    /// <summary>
    /// 读卡器方法
    /// </summary>
    public class FunCard
    {
        /// <summary>
        /// 读卡，返回卡号
        /// </summary>
        /// <param name="CardReaderModel"></param>
        /// <returns></returns>
        public static string ReadPhysicalCardNo(out int ret)
        {
            string cardNo = "";
            string result = "";
            var ReadInfo = D3_Card.ReadCardsnr(out ret,out cardNo);
            result = cardNo;
            if (result!="-1" && result != "-2" && result != "-3" && result != "-4")
            {
                return result;
            }
            else
                return "0";
        }
    }
}
